home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_HDF.idb / usr / freeware / include / hdf / cnone.h.z / cnone.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.0 KB  |  89 lines

  1. /****************************************************************************
  2.  * NCSA HDF                                                                 *
  3.  * Software Development Group                                               *
  4.  * National Center for Supercomputing Applications                          *
  5.  * University of Illinois at Urbana-Champaign                               *
  6.  * 605 E. Springfield, Champaign IL 61820                                   *
  7.  *                                                                          *
  8.  * For conditions of distribution and use, see the accompanying             *
  9.  * hdf/COPYING file.                                                        *
  10.  *                                                                          *
  11.  ****************************************************************************/
  12.  
  13. /* $Id: cnone.h,v 1.4 1997/10/24 21:00:22 koziol Exp $ */
  14.  
  15. /*-----------------------------------------------------------------------------
  16.  * File:    cnone.h
  17.  * Purpose: Header file for "none" encoding information.
  18.  * Dependencies: should only be included from hcompi.h
  19.  * Invokes: none
  20.  * Contents: Structures & definitions for "none" encoding.  This header
  21.  *              should only be included in hcomp.c and cnone.c.
  22.  * Structure definitions:
  23.  * Constant definitions:
  24.  *---------------------------------------------------------------------------*/
  25.  
  26. /* avoid re-inclusion */
  27. #ifndef __CNONE_H
  28. #define __CNONE_H
  29.  
  30. #if defined c_plusplus || defined __cplusplus
  31. extern      "C"
  32. {
  33. #endif                          /* c_plusplus || __cplusplus */
  34.  
  35. /*
  36.    ** from cnone.c
  37.  */
  38.  
  39.     extern int32 HCPcnone_stread
  40.                 (accrec_t * rec);
  41.  
  42.     extern int32 HCPcnone_stwrite
  43.                 (accrec_t * rec);
  44.  
  45.     extern int32 HCPcnone_seek
  46.                 (accrec_t * access_rec, int32 offset, int origin);
  47.  
  48.     extern int32 HCPcnone_inquire
  49.                 (accrec_t * access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref,
  50.                int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess,
  51.                  int16 *pspecial);
  52.  
  53.     extern int32 HCPcnone_read
  54.                 (accrec_t * access_rec, int32 length, void * data);
  55.  
  56.     extern int32 HCPcnone_write
  57.                 (accrec_t * access_rec, int32 length, const void * data);
  58.  
  59.     extern intn HCPcnone_endaccess
  60.                 (accrec_t * access_rec);
  61.  
  62. #if defined c_plusplus || defined __cplusplus
  63. }
  64. #endif                          /* c_plusplus || __cplusplus */
  65.  
  66. /* "none" [en|de]coding information */
  67. typedef struct
  68. {
  69.     intn        space_holder;   /* merely a space holder so compilers don't barf */
  70. }
  71. comp_coder_none_info_t;
  72.  
  73. #ifndef CNONE_MASTER
  74. extern funclist_t cnone_funcs;  /* functions to perform run-length encoding */
  75. #else
  76. funclist_t  cnone_funcs =
  77. {                               /* functions to perform run-length encoding */
  78.     HCPcnone_stread,
  79.     HCPcnone_stwrite,
  80.     HCPcnone_seek,
  81.     HCPcnone_inquire,
  82.     HCPcnone_read,
  83.     HCPcnone_write,
  84.     HCPcnone_endaccess
  85. };
  86. #endif
  87.  
  88. #endif /* __CNONE_H */
  89.